<html>
<head>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>

<body>
	<form id="radiochk">
		<input type="radio" name="reply[promo]" value="opz1">scelta 1</input><br/>
		<input type="radio" name="reply[promo]" value="opz2">scelta 2</input><br/>
		
	</form>
<br/>prima<br/>
<script type="text/javascript" src="http://form.noleggialungotermine.com/formGen.jsp?id=2&ct=YXJ2YWwuZm9ybQ=="></script>
<br/>dopo<br/>


<script type="text/javascript">
var ppssarvalform = $('#form_2_dem');
//ppssarvalform.attr("action","//localhost.me/testform.php");
function ppss_validator(){
	var res = v.exec();
	if (res){
		var txt = ppssarvalform.find("textarea[name=lead_messaggio]").val();
		var val = $('#radiochk input[name="reply[promo]"]:checked').val();
		if (val===undefined){val = "non selezionato";}
		ppssarvalform.find("textarea[name=lead_messaggio]").val("opzione selezionata="+val+"<br/>-----<br/>"+txt);
	}
	return res;
}
$("form").attr("onsubmit","return ppss_validator()");
</script>

</body>

</html>